<?php

namespace common\validate;

class UserFavorites extends BaseValidate
{
    // 获取用户收藏 验证场景定义
    public function sceneGetUserFavorites()
    {
        return $this->append('param', 'require|array')
			->append('param.page','require|array')
//			->append('param.filter.user_id','require')
			->append('param.filter.link_type','require|in:folder,file');
    }

    // Create 验证场景定义
    public function sceneCreateUserFavorites()
    {
        return $this->append('param', 'require|array')
			->append('param.id','require')
			->append('param.link_type', 'require');
    }

    // 删除用户收藏信息
    public function sceneDeleteUserFavorites()
    {
        return $this->append('param', 'require|array')
			->append('param.id','require')
			->append('param.link_type','require');
    }
}
